import Vue from 'vue';
import Vuex from 'vuex';

import countStore from './modules/test/store.js';

Vue.use(Vuex);

const store = new Vuex.Store({
	state: {
		userInfo: null,
		logined: false
	},

	modules: {
		countStore
	},
	
	mutations: {
		SET_USER_INFO(state, userInfo) {
			state.userInfo = userInfo;
		},
		
		SET_LOGINED(state, payload) {
			state.logined = payload;
		}
	}
});

export default store;
